// Person.java
public class Person {
    private String name;
    private int age;
    private String gender;
    private String address;
    private String phoneNumber;

    public Person() {
        this.name = "张三";
        this.age = 25;
        this.gender = "男";
        this.address = "北京";
        this.phoneNumber = "13800138000";
    }

    public Person(String name, int age, String gender, String address, String phoneNumber) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.address = address;
        this.phoneNumber = phoneNumber;
    }

    public void printInfo() {
        System.out.println("姓名：" + name + "，年龄：" + age + "，性别：" + gender);
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }
}

// Student.java
public class Student {
    private String studentID;
    private String name;
    private int age;
    private String gender;
    private String major;

    public Student() {
        this.studentID = "001";
        this.name = "张三";
        this.age = 20;
        this.gender = "男";
        this.major = "计算机科学与技术";
    }

    public Student(String studentID, String name, int age, String gender, String major) {
        this.studentID = studentID;
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.major = major;
    }

    public void printInfo() {
        System.out.println("学号：" + studentID + "，姓名：" + name + "，年龄：" + age + "，性别：" + gender + "，专业：" + major);
    }

    public void setStudentID(String studentID) {
        this.studentID = studentID;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setMajor(String major) {
        this.major = major;
    }
}

// Main.java
public class Main {
    public static void main(String[] args) {
        Person person1 = new Person();
        person1.printInfo();
        person1.setName("李四");
        person1.setAge(30);
        person1.setGender("女");
        person1.setAddress("上海");
        person1.setPhoneNumber("13900139000");
        person1.printInfo();

        Student student1 = new Student();
        student1.printInfo();
        student1.setStudentID("002");
        student1.setName("李四");
        student1.setAge(22);
        student1.setGender("女");
        student1.setMajor("软件工程");
        student1.printInfo();
    }
}